package com.itheima.fuxi.string.test1;

public class test {
    public static void main(String[] args) {
      char[] c = new char[]{'1','2','3'};
      String s = new String(c);
        System.out.println(s);
        System.out.println("----------");
        String ss = new String("qwd");
        System.out.println(ss);
        System.out.println("----------");
        String sss = new String();//String打印出来的是空白不是地址值
        System.out.println(sss);
        String s1 = "abc";
        String s2 = "ABC";
        String s3 = "abc";

        // equals : 比较字符串内容, 区分大小写
        System.out.println(s1.equals(s2));
        System.out.println(s1.equalsIgnoreCase(s2));
        System.out.println(s1.equals(s3));
    }

}
